home *** CD-ROM | disk | FTP | other *** search
-
-
- #: 58923 Sub-topic 3 - Disk Programming
- Sb: #58585-#PROGRAMMING C-64
- 03-Feb-85 15:13:41
- Fm: Ken Kehl 70616,226
- To: Ken Hurt 74546,303
-
-
- Ken, printing information to SEQ files is just like printing to the screen
- with a few small changes.
-
- First the file must be opened.
-
- 10 open1,8,3,"0:seqfile,s,w"
- (the ,s,w means sequential,write. If you only want to read the file, this can
- be left off, as the DOS assumes ,s,r if no type & direction are given.)
-
- then print the information to the file. (print means output, and the screen
- just happens to be the default output device, that's all)
-
- 20 print#1,"this is a textfile"
-
- then the file should be closed up.
-
- 30 close 1
-
- If you are using a string as a filename, you just concatenate the name to
- match proper syntax
-
- 5 input"filename";f$:iff$=""goto5
- 10 open1,8,3,"0:"+f$+",s,w"
-
- continued in reply...enter rr
-
- * Reply:
- 58924
- (UA RE T):
-
- #: 58924 Sub-topic 3 - Disk Programming
- Sb: #58923-#PROGRAMMING C-64
- 03-Feb-85 15:15:22
- Fm: Ken Kehl 70616,226
- To: Ken Kehl 70616,226 (X)
-
-
- You can also print strings to the file from memory (which is what you ar